package com.yesep.learn.design.behavioral.chain_of_responsibility.engine;

import java.io.*;

/**
 * 责任链参与者
 */
public class ChainActor implements Serializable {
    /**
     * 参与者ID
     */
    private String userId;
    /**
     * 参与者名称
     */
    private String userName;
    /**
     * 参与者角色
     */
    private String userRole;


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    @Override
    public String toString() {
        return String.format("ChainActor{userId='%s', userName='%s', userRole='%s'}", userId, userName, userRole);
    }
}
